package com.future.hedongjun.mall.bean;

import java.io.Serializable;
import java.util.List;

/**
 * @author jniu
 * @Email niuxiaoqi@hztianque.com
 * @time 2018/11/19
 */
public class GoodsDetail implements Serializable {


    /**
     * goods_id : 21
     * goods_name : 小米Mix3
     * content : <p><img src="https://her-family.oss-cn-qingdao.aliyuncs.com/addons_store_uploads/20181105/f5b49f703245ef61bb3faa574f32076d.jpg" data-filename="filename" style="width: 699px;">
     * sales_initial : 20
     * sales_actual : 4
     * goods_status : 10
     * image : https://her-family.oss-cn-qingdao.aliyuncs.com/addons_store_uploads/20181105/ffc4440df18661948b9c2d4dd4ae419b.jpg
     * imgs_url : ["https://her-family.oss-cn-qingdao.aliyuncs.com/addons_store_uploads/20181105/ffc4440df18661948b9c2d4dd4ae419b.jpg","https://her-family.oss-cn-qingdao.aliyuncs.com/addons_store_uploads/20181105/c5d85254fc17b1a1b0e2254470881e59.jpg"]
     * goods_sales : 24
     */

    private int goods_id;
    private String goods_name;
    private String content;
    private int sales_initial;
    private int sales_actual;
    private String goods_status;
    private String image;
    private int goods_sales;
    private List<String> imgs_url;

    public int getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(int goods_id) {
        this.goods_id = goods_id;
    }

    public String getGoods_name() {
        return goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getSales_initial() {
        return sales_initial;
    }

    public void setSales_initial(int sales_initial) {
        this.sales_initial = sales_initial;
    }

    public int getSales_actual() {
        return sales_actual;
    }

    public void setSales_actual(int sales_actual) {
        this.sales_actual = sales_actual;
    }

    public String getGoods_status() {
        return goods_status;
    }

    public void setGoods_status(String goods_status) {
        this.goods_status = goods_status;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getGoods_sales() {
        return goods_sales;
    }

    public void setGoods_sales(int goods_sales) {
        this.goods_sales = goods_sales;
    }

    public List<String> getImgs_url() {
        return imgs_url;
    }

    public void setImgs_url(List<String> imgs_url) {
        this.imgs_url = imgs_url;
    }


    public static class SpecData{

        private List<SpecAttrBean> spec_attr;
        private List<SpecListBean> spec_list;

        public List<SpecAttrBean> getSpec_attr() {
            return spec_attr;
        }

        public void setSpec_attr(List<SpecAttrBean> spec_attr) {
            this.spec_attr = spec_attr;
        }

        public List<SpecListBean> getSpec_list() {
            return spec_list;
        }

        public void setSpec_list(List<SpecListBean> spec_list) {
            this.spec_list = spec_list;
        }

        public static class SpecAttrBean {
            /**
             * group_id : 20
             * group_name : 颜色
             * spec_items : [{"item_id":40,"spec_value":"黑色"},{"item_id":41,"spec_value":"翡翠绿"}]
             */

            private int group_id;
            private String group_name;
            private List<SpecItemsBean> spec_items;

            public int getGroup_id() {
                return group_id;
            }

            public void setGroup_id(int group_id) {
                this.group_id = group_id;
            }

            public String getGroup_name() {
                return group_name;
            }

            public void setGroup_name(String group_name) {
                this.group_name = group_name;
            }

            public List<SpecItemsBean> getSpec_items() {
                return spec_items;
            }

            public void setSpec_items(List<SpecItemsBean> spec_items) {
                this.spec_items = spec_items;
            }

            public static class SpecItemsBean {
                /**
                 * item_id : 40
                 * spec_value : 黑色
                 */

                private int item_id;
                private String spec_value;

                public int getItem_id() {
                    return item_id;
                }

                public void setItem_id(int item_id) {
                    this.item_id = item_id;
                }

                public String getSpec_value() {
                    return spec_value;
                }

                public void setSpec_value(String spec_value) {
                    this.spec_value = spec_value;
                }
            }
        }

        public static class SpecListBean {
            /**
             * goods_spec_id : 81
             * spec_sku_id : 40_42
             * rows : []
             * form : {"goods_no":"SN001","goods_price":"3299.00","goods_weight":0.5,"line_price":"0.00","stock_num":997,"spec_image":""}
             */

            private int goods_spec_id;
            private String spec_sku_id;
            private FormBean form;
            private List<?> rows;

            public int getGoods_spec_id() {
                return goods_spec_id;
            }

            public void setGoods_spec_id(int goods_spec_id) {
                this.goods_spec_id = goods_spec_id;
            }

            public String getSpec_sku_id() {
                return spec_sku_id;
            }

            public void setSpec_sku_id(String spec_sku_id) {
                this.spec_sku_id = spec_sku_id;
            }

            public FormBean getForm() {
                return form;
            }

            public void setForm(FormBean form) {
                this.form = form;
            }

            public List<?> getRows() {
                return rows;
            }

            public void setRows(List<?> rows) {
                this.rows = rows;
            }

            public static class FormBean {
                /**
                 * goods_no : SN001
                 * goods_price : 3299.00
                 * goods_weight : 0.5
                 * line_price : 0.00
                 * stock_num : 997
                 * spec_image :
                 */

                private String goods_no;
                private double goods_price;
                private double goods_weight;
                private String line_price;
                private int stock_num;
                private String spec_image;

                public String getGoods_no() {
                    return goods_no;
                }

                public void setGoods_no(String goods_no) {
                    this.goods_no = goods_no;
                }

                public double getGoods_price() {
                    return goods_price;
                }

                public void setGoods_price(double goods_price) {
                    this.goods_price = goods_price;
                }

                public double getGoods_weight() {
                    return goods_weight;
                }

                public void setGoods_weight(double goods_weight) {
                    this.goods_weight = goods_weight;
                }

                public String getLine_price() {
                    return line_price;
                }

                public void setLine_price(String line_price) {
                    this.line_price = line_price;
                }

                public int getStock_num() {
                    return stock_num;
                }

                public void setStock_num(int stock_num) {
                    this.stock_num = stock_num;
                }

                public String getSpec_image() {
                    return spec_image;
                }

                public void setSpec_image(String spec_image) {
                    this.spec_image = spec_image;
                }
            }
        }
    }

}
